package com.wang.tool.delivery.res;

import com.alibaba.fastjson.JSONObject;
import com.wang.tool.delivery.cache.module.ModuleBaseInfo;
import com.wang.tool.delivery.cache.module.ModuleMetaInfo;

import java.util.Map;

/**
 * @Description
 * @Author shaopeng
 * @Date 2022/7/20
 * @Version 1.0
 */
public class ModuleView {

    /**
     * 排序
     */
    private int order;

    /**
     * id
     */
    private String moduleId;

    /**
     * 模块code
     */
    private String moduleCode;

    /**
     * 模块名称
     */
    private String moduleName;


    /**
     * resourceCode-资源位
     */
    private Map<String, ResourceView> resources;

    /**
     * 区块基础信息
     */
    private ModuleBaseInfo baseInfo;

    /**
     * 开发者选项
     */
    private ModuleMetaInfo metaInfo;

    private JSONObject ext;


    public int getOrder() {
        return order;
    }

    public void setOrder(int order) {
        this.order = order;
    }

    public String getModuleId() {
        return moduleId;
    }

    public void setModuleId(String moduleId) {
        this.moduleId = moduleId;
    }

    public String getModuleCode() {
        return moduleCode;
    }

    public void setModuleCode(String moduleCode) {
        this.moduleCode = moduleCode;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }


    public Map<String, ResourceView> getResources() {
        return resources;
    }

    public void setResources(Map<String, ResourceView> resources) {
        this.resources = resources;
    }

    public ModuleBaseInfo getBaseInfo() {
        return baseInfo;
    }

    public void setBaseInfo(ModuleBaseInfo baseInfo) {
        this.baseInfo = baseInfo;
    }


    public ModuleMetaInfo getMetaInfo() {
        return metaInfo;
    }

    public void setMetaInfo(ModuleMetaInfo metaInfo) {
        this.metaInfo = metaInfo;
    }

    public JSONObject getExt() {
        return ext;
    }

    public void setExt(JSONObject ext) {
        this.ext = ext;
    }
}
